package com.cema.manage.project.manage.userDailyActivity.service;

import com.baomidou.mybatisplus.service.IService;
import com.cema.manage.project.android.model.UserDailyActivityVo;
import com.cema.manage.project.manage.antiCheatDetail.domain.AntiCheatDetail;
import com.cema.manage.project.manage.userDailyActivity.domain.UserDailyActivity;
import com.cema.manage.project.manage.userDailyActivity.domain.UserDailyActivityDto;
import com.cema.manage.project.manage.users.domain.Users;

import java.net.UnknownHostException;
import java.util.List;

/**
 * 用户日活 服务层
 * 
 * @author reasahi
 * @date 2024-08-04
 */
public interface IUserDailyActivityService extends IService<UserDailyActivity>
{
    /**
     *
     * @param users
     * @param ip
     */
    void saveUserDaily(Users users, String ip, UserDailyActivityVo userDailyActivityVo) throws UnknownHostException;

    /**
     *
     * @param currentTime
     * @return
     */
    List<UserDailyActivityDto> getUserDailyActivity(String currentTime);

    /**
     *
     * @param antiCheatDetail
     * @param users
     */
    void saveStatus(AntiCheatDetail antiCheatDetail, Users users);

    /**
     *
     * @param usId
     */
    void updateUserDailySeparation(Integer usId);

    /**
     *
     * @param users
     * @param userDailyActivityVo
     */
    void checkDeviceInfo(Users users,UserDailyActivityVo userDailyActivityVo);
}
